﻿<UserControl x:Class="Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views.DetailsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:v="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views"
			 xmlns:m="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.Models"
    >
	<ContentPresenter Content="{Binding}">
		<ContentPresenter.Resources>
			<DataTemplate DataType="{x:Type m:ReleaseInfo}">
				<v:ReleaseView DataContext="{Binding Demonstrations}"/>
			</DataTemplate>

			<DataTemplate DataType="{x:Type m:Demonstration}">
				<v:DemonstrationView DataContext="{Binding Uri}"/>
			</DataTemplate>
		</ContentPresenter.Resources>

	</ContentPresenter>
</UserControl>
